package com.jeff.android.lab.architecture.arouter;

import android.content.Context;
import android.content.Intent;

import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.facade.service.DegradeService;
import com.jeff.android.lab.architecture.arouter.activity.EmptyActivity;

/**
 * 降级策略
 *
 * @author: dingfeng
 * @date: 2021/1/22
 * @since: 1.0.0
 **/
@Route(path = "/degrade/service")
public class DegradeServiceImpl implements DegradeService {
    @Override
    public void onLost(Context context, Postcard postcard) {
        context.startActivity(new Intent(context, EmptyActivity.class));
    }

    @Override
    public void init(Context context) {

    }
}
